<ui-select multiple ng-model="$ctrl.model" close-on-select="false" style="margin-top: 55px">
  <ui-select-match placeholder="Select one or multiple endpoint(s)">
    <span>
      {{ $item.Name }}
      <span ng-if="$item.Tags.length">({{ $item.Tags | arraytostr }})</span>
     </span>
  </ui-select-match>
  <ui-select-choices group-by="$ctrl.groupEndpoints" group-filter="$ctrl.sortGroups" repeat="endpoint.Id as endpoint in $ctrl.endpoints | filter: { Name: $select.search }">
    <span>
      {{ endpoint.Name }}
      <span ng-if="endpoint.Tags.length">({{ endpoint.Tags | arraytostr }})</span>
     </span>
  </ui-select-choices>
</ui-select>
